package com.kingdee.eas.custom.common.server;

import com.kingdee.bos.BOSException;
import com.kingdee.bos.Context;
import com.kingdee.eas.framework.report.util.SqlParams;

public class ThreadDbUtils extends Thread {

	private Context ctx;

	private String sql;

	private String tempTable;

	private SqlParams params;

	public void run() {
		try {
			System.out.println(this.getId()+System.currentTimeMillis());
			DbUtils.executeIntoTempTable(ctx, sql, tempTable, params);
			System.out.println(this.getId()+System.currentTimeMillis());
		} catch (BOSException e) {
			e.printStackTrace();
		}
	}

	public void setExecuteParams(Context ctx, String sql, String tempTable,
			SqlParams params) {

		this.ctx = ctx;
		this.sql = sql;
		this.tempTable = tempTable;
		this.params = params;
	}

	public String getTempTable() {
		return tempTable;
	}
	
	
}
